/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.webbapps.cormac_susilo.bootstrap;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 *
 * @author tor
 */
public class PersistanceListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        Logger.getLogger(PersistanceListener.class.getName()).log(Level.INFO, "BOOTSTRAPPING!");
        CormacBootstrap.getInstance();
        
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        Logger.getLogger(PersistanceListener.class.getName()).log(Level.INFO, "KILLSTRAPPING!");
        CormacBootstrap.getInstance().destroy();
    }
    
}
